package com.telit.firecommand.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * comm_communicate_record
 *
 * @author
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommCommunicateRecord implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 会议类型,vedio,radio
     */
    @ApiModelProperty(value = "会议类型,video,radio")
    private String meetingType;

    /**
     * 参会人员
     */
    @ApiModelProperty(value = "参会人员")
    private String participants;

    /**
     * 会议时长,分钟
     */
    @ApiModelProperty(value = "会议时长")
    private String meetingDuration;

    /**
     * 火情id
     */
    @ApiModelProperty(value = "火情id")
    private String fireId;

    @ApiModelProperty(value = "会议发起人id")
    private Long sponsor;

    @ApiModelProperty(value = "房间号")
    @NotBlank(message = "房间号不能为空")
    private String channel;

    @ApiModelProperty(value = "当前房间人员")
    private String currentParticipants;

    @ApiModelProperty(value = "发起人名称")
    @TableField(exist = false)
    private String sponsorName;

    private static final long serialVersionUID = 1L;

}